<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title>3.7. How to rename a Capella Project</title>
		<link type="text/css" rel="stylesheet" href="PLUGINS_ROOT/org.polarsys.capella.doc/html/styles.css"/>
	</head>
	<body>
		<h1 id="How_to_rename_a_Capella_Project.3F">How to rename a Capella Project?</h1>
		<p>Either the session is closed or the session is open, you can rename the project.</p>
		<p>The following sequence must be respected:</p>
		<ol>
			<li>On the 
				<b>project</b>, type 
				<b>F2</b> (or contextual menu &ldquo;Rename&rdquo;): this action will rename the folder of the project and modify the &ldquo;.project&rdquo; file inside this folder. It will rename also the Project root element of the model and the System Engineering element. If the project contains images referenced in the diagram, the paths also to those images in the aird will be updated.
			</li>
			<li>On the &ldquo;
				<b>.capella</b>&rdquo; file, type 
				<b>F2</b> (or contextual menu &ldquo;Rename&rdquo;): this action will rename the &ldquo;.capella&rdquo; file and update all references from the &ldquo;.aird&rdquo; files to the &ldquo;.capella&rdquo; file.
			</li>
			<li>On the &ldquo;
				<b>.aird</b>&rdquo; file, type 
				<b>F2</b> (or contextual menu &ldquo;Rename&rdquo;): this action will rename the &ldquo;.aird&rdquo; file and also the associated &ldquo;.afm&rdquo; file and update all references in the &ldquo;.aird&rdquo; files to the &ldquo;.afm&rdquo; file.
			</li>
			<li>On the &ldquo;
				<b>.melodyconnector</b>&rdquo; file, type 
				<b>F2</b> (or contextual menu &ldquo;Rename&rdquo;): this action will rename the &ldquo;.melodyconnector&rdquo; file.
			</li>
		</ol>
		<table border="1">
			<tr>
				<td>
					<p>
						<img height="48" width="48" border="0" src="Images/3.5.%20How%20to%20migrate%20Melody%20Advance%20projects_html_3c78e109.png"/>
					</p>
				</td>
				<td>
					<p>The same process can be applied on Library projects.</p>
				</td>
			</tr>
			<tr>
				<td>
					<p>
						<img height="44" width="44" border="0" src="Images/3.7.%20How%20to%20rename%20a%20Melody%20Advance%20Project_html_723ed3f9.png"/>
					</p>
				</td>
				<td>
					<p>If you rename a Library project, all the references to this library will be lost. Libraries renaming must be done very carefully.</p>
				</td>
			</tr>
			<tr>
				<td>
					<p>
						<img height="44" width="44" border="0" src="Images/3.7.%20How%20to%20rename%20a%20Melody%20Advance%20Project_html_723ed3f9.png"/>
					</p>
				</td>
				<td>
					<p>About images used in diagrams and in rich text editor
						<br/>
					</p>
					<p>In the same way, assuming that a referencing Capella project or a Library project is using images that are located in a referenced project (Capella project, a Library project or any project) then renaming the referenced project will break the images (images will not be seen anymore) in the referencing project.</p>
					<p>More information about the 
						<a href="/wiki/../help/topic/org.polarsys.capella.validation.doc/html/Validation%20Rules/integrity/ValidationRules.html" title="../help/topic/org.polarsys.capella.validation.doc/html/Validation%20Rules/integrity/ValidationRules.html">validation for images</a> or about the  
						<a href="/wiki/../help/topic/org.polarsys.capella.ui.doc/html/First%20steps%20with%20Capella/3.5.%20How%20to%20migrate%20Capella%20projects.html#Special_attention_to_image_used_in_the_project" title="../help/topic/org.polarsys.capella.ui.doc/html/First%20steps%20with%20Capella/3.5.%20How%20to%20migrate%20Capella%20projects.html#Special_attention_to_image_used_in_the_project">Capella project migration for images.</a>
					</p>
					<p>Note that the images used in the renamed project and located in the renamed project will be properly migrated and will be properly displayed.</p>
				</td>
			</tr>
		</table>
	</body>
</html>